# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=perl-b-keywords
pkgver=1.24
pkgrel=2
pkgdesc="Lists of reserved barewords and symbol names"
arch=('any')
license=('PerlArtistic')
url="https://metacpan.org/release/B-Keywords"
depends=('perl')
checkdepends=('perl-test-pod')
options=('!emptydirs')
source=("https://cpan.metacpan.org/authors/id/R/RU/RURBAN/B-Keywords-$pkgver.tar.gz")
sha512sums=('b48290ffa0fc2f843930c0dc5227c0cce5552c5e112d2c63307b7557323387207a70cb30d7bc5e00db6e1ad4c8055b40e80c158e449a4fda9f4471cbc07ca8f7')

build() {
  cd B-Keywords-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd B-Keywords-$pkgver
  make test
}

package() {
  cd B-Keywords-$pkgver
  make DESTDIR="$pkgdir" install
}
